<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"/>
    <title>{if $title} {$title} {else}  {if !empty($set['copyright'])} {$set['copyright']} {else}{$_W['account']['name']}{/if} {/if} {if $_W['account']['siteinfo']['sitename']}{$_W['account']['siteinfo']['sitename']} {/if}</title>
    <link rel="stylesheet" href="{RES}css/base.css?v=1.0.0.0.1426898548"/>
    <link rel="stylesheet" href="{RES}css/public.css?v=1.0.0.0.1426898548"/>
    {php echo register_jssdk(false);}
    <link rel="stylesheet" href="http://cdn.amazeui.org/amazeui/2.1.0/css/amazeui.css">
    <script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
    <script src="{RES}js/jquery-1.9.1.js?v=1.0.0.0.1426898548" type="text/javascript"></script>
    <script src="{RES}js/amazeui.min.js?v=1.0.0.0.1426898548" type="text/javascript"></script>
</head>
<body>

<div id="menutipBox" class="share">
    <div class="overcast"></div>
    <div class="window">
        <div class="menutip-body">
            <div class="title">分享成功</div>
            <div class="text">
                <a href="{$set['guanzhuUrl']}"
                   id="goMoneyBtn"> <span> 确定 </span>
                </a>
            </div>
        </div>
    </div>
</div>
<div data-am-widget="gotop" class="am-gotop am-gotop-fixed">
    <a href="#top" title="回到顶部">
        <span class="am-gotop-title"> 回到顶部 </span>
        <i class="am-gotop-icon am-icon-chevron-up"> </i>
    </a>
</div>

<div id="wrapper">
    <div data-am-widget="header" class="am-header am-header-default"
         id="header">
        <div class="am-header-left am-header-nav">
            <a href="javascript:history.back(-1);" class="">
                <img class="am-header-icon-custom"  src="data:image/svg+xml;charset=utf-8,&lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; viewBox=&quot;0 0 12 20&quot;&gt;&lt;path d=&quot;M10,0l2,2l-8,8l8,8l-2,2L0,10L10,0z&quot; fill=&quot;%23fff&quot;/&gt;&lt;/svg&gt;"/>
            </a>
        </div>
        <h1 class="am-header-title">
        {if $title} {$title} {else}  {if !empty($set['copyright'])} {$set['copyright']} {else}{$_W['account']['name']}{/if} {/if} {if $_W['account']['siteinfo']['sitename']}{$_W['account']['siteinfo']['sitename']} {/if}
    </h1>
    </div>
</div>
<link rel="stylesheet" type="text/css"
      href="{RES}css/culture.css?v=1.0.0.0.1426898548"/>
<div class="container">
    <ul>
        <div class="bg">
            <div style="margin-top: 1px;"></div>
            {data func="amouse_article_site_category" parentid=$cid return="true" assign="navs"}
            {if empty($navs)}
             {data module="amouse_article" func="amouse_article_site_article" cid=$cid return="true" assign="result"}
            {loop $result['list'] $row}
            <li>
                <a href="{php echo $this->createMobileUrl("detail",array("id" => $row['id']),true)}">
                {if !empty($row['thumb'])}
                <div style="float: left; width: 20%; height: 65px;background: url({php echo strpos($row['thumb'],'http://')===FALSE?($_W['attachurl'].$row['thumb']):$row['thumb']}) center no-repeat;">
                </div>
                {else}
                <div class="cate-img"> </div>
                {/if}
                    <div class="title">
                        <dd>{$row[title]}
                        <dd>
                    </div>
                    <div class="right"></div>
                </a>
            </li>
            {/loop}
            {else} 
            {loop $navs $nav}
            <li>
                <a href="{php echo $this->createMobileUrl("second",array("parentid"=>$nav['parentid'],"cid" => $nav['id']),true)}">
                {if !empty($nav['thumb'])}
                <div style="float: left; width: 20%; height: 65px;background: url({php echo strpos($nav['thumb'],'http://')===FALSE?tomedia($nav['thumb']):$nav['thumb']}) center no-repeat;"></div>
                {else}
                <div class="cate-img"> </div>
                {/if}
                <div class="title">
                    <dd>{$nav[name]}
                    <dd>
                </div>
                <div class="right"></div>
                </a>
            </li>

            {/loop}
            {/if}


        </div>
    </ul>
</div>
</div>
<div style="display: none;">
    {if !empty($set['cnzz'])}
    {php echo htmlspecialchars_decode($set['cnzz']);}
    {/if}
</div>
</body>
<script language='javascript'>

    wx.ready(function () {
        shareMeta = {
            imgUrl:"{$shareimg}",
            link:"{$url}",
            desc:"{if !empty($category['description'])}{$category['description']}{else}{$_W['account']['name']}的精美图文{/if}",
            title:"{if !empty($category['title'])}{$category['title']}{else}{$_W['account']['name']}的精美图文{/if}",
            success: function(){

            },
            cancel: function(){
                // alert("分享失败，可能是网络问题，一会儿再试试？");
            }
        };
        wx.onMenuShareTimeline(shareMeta);
        wx.onMenuShareAppMessage(shareMeta);
        wx.onMenuShareWeibo(shareMeta);
        wx.onMenuShareQQ(shareMeta);
        wx.onMenuShareQZone(shareMeta);
    });
</script>

</html>